﻿#ifndef LOOPQUE_H
#define LOOPQUE_H

#include <QObject>
#include <QVector>
class loopQue : public QObject
{
    Q_OBJECT
public:
    explicit loopQue(QObject *parent = 0);
    void push(int value);
    int back();
    int next();
private:
    QVector<int> loopque;
    int *head;
    int *rear;
    int headnum;
    int rearnum;
    int lastNum;    //上一次的行号，避免重复
    int backNum;
signals:

public slots:

};

#endif // LOOPQUE_H
